<%= render :partial => "search_box" %>
<% if @books %>
  <p>Your search "<%= params[:q] %>" produced
  <%= pluralize @books.size, "result" %>:</p>
  <%= render(:partial => "books") %>
<% end %>